<script type="text/javascript">
    self.onerror= function( handler ){
        return function( exception, file, line ){
            alert( exception + ' [' + file + ':' + line + ']' )
            handler && handler.apply( this, arguments )
        }
    }( self.onerror )
</script>

<!--
<script type="text/javascript" src="/jfix/?name=pack/test">
</script>
-->

<iframe src="/jfix/?name=pack/test">
</iframe>